package com.wangcanxuan.www.entity.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.PrimaryKey;
import com.wangcanxuan.www.annotation.orm.Table;

/**
 * 作用测试SqlPort
 *
 * @author HHLJ
 * @date 2022/03/25
 */
@Table(tableName = "test_table")
public class TestTable {
    @PrimaryKey()
    @Column(columnName = "id" , description = "主键")
    private Integer id;

    @Column(columnName = "user_name",description = "用户名")
    private String userName;

    @Column(columnName = "password",description = "密码")
    private String password;

    public TestTable() {
    }

    public TestTable(Integer id, String userName, String password) {
        this.id = id;
        this.userName = userName;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "TestTable{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
